﻿<PageFunction
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib" 
    x:Class="ComicViewer.ViewPage2"
    x:TypeArguments="sys:String"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300"
    Title="PageFunction3">
    <Grid>
        <Grid>
            <WrapPanel Name="_list" Margin="0,50,0,0"/>
        </Grid>
        <Grid Name="_panelPreview" Background="#A1000000" PreviewMouseRightButtonUp="_panelPreview_PreviewMouseRightButtonUp">
            <ScrollViewer  VerticalScrollBarVisibility="Auto" Name="_ctlScroll">
                <Border BorderBrush="Yellow" BorderThickness="2">

                    <Image Name="_ctlImage" Source="{Binding Path=Source}" Stretch="UniformToFill" Width="800" HorizontalAlignment="Center" VerticalAlignment="Center"/>

                </Border>
            </ScrollViewer>

            <Button Content="P" Width="50" Height="100" Opacity="0.5" HorizontalAlignment="Left" Click="Button_Click"/>
            <Button Content="N" Width="50" Height="100" Opacity="0.5" HorizontalAlignment="Right" Click="Button2_Click"/>
            <Button Content="下一章" HorizontalAlignment="Right" VerticalAlignment="Bottom" Click="Button_Click_1"/>
            <Button Name="_btnCaption" Content="下一章" HorizontalAlignment="Left" VerticalAlignment="Bottom"/>
            <Button Content="返回" HorizontalAlignment="Left" VerticalAlignment="Top" Click="Button_Click_2"/>
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Opacity="0.5" Text="{Binding Path=Index}"/>
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Bottom" Opacity="0.5" Text="{Binding Path=PicUri}"/>
        </Grid>
    </Grid>
</PageFunction>
